extends "../nandaketa-3/nandaketa-3.gd"


var baseId = ""
var upText1 = "最强之盾回血量提高50%"
var upText2 = "不沉之舰触发时恢复50%血量"
func _extInit():
	._extInit()
	lv = 4             #等级的设置
	addSkill("每回合可免受5次致命伤害", "不沉之舰")

var skNum = 5
func onHurtDeath(atkInfo):
	.onHurtDeath(atkInfo)
	if skNum > 0 and atkInfo.hurtChaDead:
		skNum -= 1
		atkInfo.hurtChaDead = false
		if upgraded == 2:
			healCha(self, att.maxHp*0.5)

func _onBattleStart():
	._onBattleStart()
	skNum = 5

func upgrade():
	.upgrade()
	if upgraded == 1:
		p3 = 1.5